﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DomenModel
{
    public class Order
    {
        [Key]
        public int OrderId { get; set; }
        public IList<OrderDetails> OrderDetailses { get; set; }

               
        public int UserId { get; set; }
        public virtual User user { get; set; }


        public string Assigned { get; set; }
        
        public DateTime? DateOfOrdering { get; set; }
        public DateTime? PreferibleDeliveryDate { get; set; }
        public DateTime? DeliveryDate { get; set; }

        public int CreditCardId { get; set; }
        public virtual CreditCard CreditCard { get; set; }

        public int TotalPrice { get; set; }

        public bool Accepted { get; set; }
        public bool Delivered { get; set; }
        public bool Gift { get; set; }
    }
}
